#!/bin/bash

# init delays
s3pic_cntl 0x80 0x04 0x00
s3pic_cntl 0x81 0x04 0x00
s3pic_cntl 0x82 0x04 0x00

# driver on
s3pic_cntl 0x90 0x00 0x80

# PGM asserted
s3pic_cntl 0x90 0x02 0x80

# MCLR deasserted
s3pic_cntl 0x90 0x03 0x80


s3pic_cntl 0x10 0x80 0x6A
s3pic_cntl 0x10 0x89 0x6A
s3pic_cntl 0x10 0x0F 0x0E
s3pic_cntl 0x10 0xC1 0x6E
s3pic_cntl 0x10 0x07 0x0E
s3pic_cntl 0x10 0xB4 0x6E
s3pic_cntl 0x10 0xFE 0x0E
s3pic_cntl 0x10 0x92 0x6E
s3pic_cntl 0x10 0x01 0x0E
s3pic_cntl 0x10 0x80 0x6E


